﻿<%@ Page Title="Cập nhật tài khoản" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="CapNhatTaiKhoan.aspx.cs" Inherits="CapNhatTaiKhoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    #style1
    {
        text-align: right;
    }
    #style2
    {
        text-align: left;
    }
    #linkStyle
    {
    	color: #0066FF;
	    font-weight: bold;
    }
        .style1
        {
            width: 43%;
        }
    </style>
</asp:Content>
<asp:Content ID="ContentCapNhat" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:label runat="server" ID="lbContent" >
    <table border="10" cellpadding="6" cellspacing="1" width="100%" style="background-color:White;">
        <tr>
            <td style="text-align:center; color:Blue;"><h1 style="text-align:center;">Cập Nhật Tài Khoản</h1></td>
        </tr>
        <tr>
            <td>
                <table id="Detail" width="80%">
                    <tr>
                        <td style="text-align:left" >
                        Tên đăng nhập
                        </td>
                        <td style="width:60%;" align="left">
                            <asp:Label ID="TenDanhNhap" runat="server" Width="100%" MaxLength="50" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >
                            Mật khẩu 
                        </td>
                        
                        <td style="margin-left:1px">
                            <asp:TextBox ID="MatKhau" runat="server" Width="100%" TextMode="Password" 
                                MaxLength="30" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="vrMatKhau" runat="server" 
                                ControlToValidate="MatKhau" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >Nhắc lại mật khẩu</td>
    
                        <td>
                            <asp:TextBox ID="NhacLaiMatKhau" runat="server" Width="100%"
                                TextMode="Password" MaxLength="30" ></asp:TextBox>
                        
                            <asp:RequiredFieldValidator ID="vrNhacLaiMatKhau" runat="server" 
                                ControlToValidate="NhacLaiMatKhau" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="vcNhacLaiMatKhau" runat="server" 
                                ControlToCompare="MatKhau" ControlToValidate="NhacLaiMatKhau" 
                                ErrorMessage="CompareValidator">Mật khẩu không giống nhau</asp:CompareValidator>
                        
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >
                            Họ tên
                        </td>
                        
                        <td>
                            <asp:TextBox ID="HoTen" runat="server" Width="100%" MaxLength="35" 
                                class="style2" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="HoTen" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >Ngày sinh</td>
                        
                        <td>
                           
                            <asp:DropDownList ID="Ngay" runat="server" Width="80px" Height="25px"></asp:DropDownList>
                            <asp:Label ID="Label1" Text="/" runat="server" Width="20px" Height="25px" Font-Bold="true"></asp:Label>
                            
                            <asp:DropDownList ID="Thang" runat="server" Width="80px" Height="25px"></asp:DropDownList>
                            <asp:Label ID="Label2" Text="/" runat="server" Width="20px" Height="25px" Font-Bold="true"></asp:Label>
                            
                            <asp:DropDownList ID="Nam" runat="server" Width="80px" Height="25px"></asp:DropDownList>
                            
                            
                            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                ControlToValidate="Ngay" ErrorMessage="CompareValidator" 
                                Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                            <asp:CompareValidator ID="CompareValidator3" runat="server" 
                                ControlToValidate="Thang" ErrorMessage="CompareValidator" 
                                Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                            <asp:CompareValidator ID="CompareValidator4" runat="server" 
                                ControlToValidate="Nam" ErrorMessage="CompareValidator" 
                                Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                            
                            
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >Email</td>
                        
                        <td>
                            <asp:Label ID="Email" runat="server" Width="100%" MaxLength="50"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >Số điện thoại</td>
                        <td>
                            <asp:TextBox ID="SoDienThoai" runat="server" Width="100%" MaxLength="11"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator5" runat="server" 
                                ControlToValidate="SoDienThoai" ErrorMessage="CompareValidator" 
                                Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >CMND</td>
                        <td>
                            <asp:TextBox ID="CMND" runat="server" Width="100%" MaxLength="10"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator6" runat="server" 
                                ControlToValidate="CMND" ErrorMessage="CompareValidator" 
                                Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:left" >Địa chỉ</td>
                        <td>
                            <asp:TextBox ID="DiaChi" runat="server" TextMode="MultiLine" Width="100%"></asp:TextBox>    
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center">
                            <asp:Button runat="server" Text="Cập Nhật" ID="Update" onclick="Update_Click" UseSubmitBehavior="true" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </asp:label>
</asp:Content>

